#include<iostream>
#include<cstdio>

int main()
{
  //stdout
  printf("hello printf\n");
  fprintf(stdout,"hello fprintf\n");
  fputs("hello fputs\n",stdout);

  //stderr
  fprintf(stderr,"hello fprintf\n");
  fputs("hello fputs\n",stderr);
  perror("hello perror\n");

  //cout
  std::cout<<"hello cout" <<std::endl;
  //cerr
  std::cerr<<"hello ceer" <<std::endl;
  return 0;
}
